<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Uploadify Example Script</title>

<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript" language="javascript"> google.load("jquery", "1.3.2"); </script>






</head>

<body>

<div id="pubFiles"> &nbsp; </div>
			<input type="hidden" name="MAX_FILE_SIZE" value="2000000">图片文件： 
	        <input name="file" id="file" type="file"  value="浏览" >
	        <input type="submit" value="上传"  id="pubSubmit">
</td></tr>

      </table>
<script type="text/javascript">
$(document).ready(function(){
	$("#pubSubmit").click(function(){

		$.post("bg-up.php", {
			file: $("#file").val(),
			tmp_file: $("#file")
			}, function(data){
				alert( $("#file").val() );
				alert(data);
			});
		
	});

	
});
</script>



</body>
</html>